﻿//customerconfig.js

/*****************************************************
* k-phu: 2013/11/22
* Manage/IO
*****************************************************/
function showCustomerConfigWindow() {    
                //tabelpanel
                var tp = new Ext.TabPanel({
                    height: 380,
                    width: 500,
                    activeTab: 0,
                    items: [{

                        title: '_CustomerConfigResource_AlarmDefine',
                        iconCls: 'icon-alarmdefine',
                        //items: [alarmdefinegrid],
                        layout:'fit',
                        activeTab: 0
                    }, {
                        iconCls: 'icon-statedefine',
                        title: '_CustomerConfigResource_StateDefine',
                        layout:'fit',
                       // items: [statedefinegrid]
                    }
//                    , {
//                        iconCls: 'icon-calculatedefine',
//                        title: _CustomerConfigResource_CalculateDefine,
//                        layout:'fit',
//                        items: [calculatedefinegrid]
//                    }
                    ]
              });

                var customerConfigWindow = new Ext.Window({
                    title:'_TrackerMain_CustomerConfig',
                    iconCls:'icon-customerdefine',
                    width: 520,
                    height: 520,
                    resizable: true,
                    layout:'fit',
                    closeAction: 'close',
                    items: [tp],
                    minimizable: true,
                    constrain:true,
                    listeners: {
                        'minimize': function() {
                            addTaskButtonForWindow(customerConfigWindow);
                        }
                    }
                });
                
                customerConfigWindow.show();
}